// 导入自己需要的组件
import Vue from 'vue'
import { Input, Button, Form, FormItem, Message, Upload, Radio, Pagination, Table, TableColumn, Loading, MessageBox, Tag } from 'element-ui'
const element = {
  install: function (Vue) {
    Vue.use(Button)
    Vue.use(Input)
    Vue.use(Form)
    Vue.use(Upload)
    Vue.use(FormItem)
    Vue.use(Radio)
    Vue.use(Table)
    Vue.use(Pagination)
    Vue.use(TableColumn)
    Vue.use(Loading.directive)
    Vue.use(Tag)
  }
}

Vue.prototype.$message = Message
// Vue.prototype.$msgbox = MessageBox
Vue.prototype.$confirm = MessageBox.confirm

export default element